package com.example.demoview;

import org.springframework.http.HttpHeaders;

import java.util.Map;

public class MyHeaders {

    public HttpHeaders myHeaders(){

        HttpHeaders responseHeaders = new HttpHeaders();
        responseHeaders.set("Access-Control-Allow-Credentials","true");
        responseHeaders.set("Access-Control-Allow-Origin","*");
        responseHeaders.set("Access-Control-Allow-Methods","*");
        responseHeaders.set("Access-Control-Expose-Headers","*");
        return responseHeaders;
    }
}
